package cn.snmp.mutual.uk.pdu;

import cn.snmp.mutual.uk.stack.SetPdu;
import cn.snmp.mutual.uk.stack.SnmpContextBasisFace;
import cn.snmp.mutual.uk.stack.Varbind;

public class SetPdu_vec extends SetPdu {
    private static final String version_id = "@(#)$Id: SetPdu_vec.java,v 3.14 2006/11/29 16:12:50 birgit Exp $ Copyright Westhawk Ltd";
    Varbind[] value;

    public SetPdu_vec(final SnmpContextBasisFace con, final int count) {
        super(con);
        this.value = new Varbind[count];
    }

    @Override
    protected void new_value(final int n, final Varbind var) {
        if (n < this.value.length) {
            this.value[n] = var;
        }
    }

    @Override
    protected void tell_them() {
        this.notifyObservers(this.value);
    }
}
